package com.lyb.mapper;

import com.lyb.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> queryList();

    List<Category> queryByPage(String keyword);

    Category queryById(Integer id);

    int saveCategory(Category category);

    int updateCategory(Category category);

    int deleteCategory(Integer id);
}
